<!-- Player:Component:Player -->

<groupdef id="player.display">

	<layer x="0" y="0" h="54" w="222" image="player.display.background" move="0"/>
	<layer x="0" y="0" h="54" w="222" image="player.display.foreground" move="0"/>

	<SongTicker id="Songticker" 
		x="70" y="4" h="20" w="150"
		showlen="1" offsetx="-3"
		rightclickaction="trackmenu" dblclickaction="trackinfo" align="right"
		color="color.display" fontsize="13" valign="top" bold="2"
	/>
	<Text id="InfoDisplay" 
		x="70" y="4" h="20" w="150" alpha="0"
		display="SONGTITLE" showlen="1" offsetx="-3" align="right"
		color="color.display" fontsize="13" valign="top" bold="2"
	/>

	<status
		id="status"
		x="100" y="20"
		w="5" h="6"
		stopBitmap="player.display.status.stopped"
		playBitmap="player.display.status.playing"
		pauseBitmap="player.display.status.paused"
	/>

	<text id="SongTime"
		x="10" y="6" h="27" w="80"
		font="player.bitmapfont.nums" timecolonwidth="6"
		display="time" align="left" alpha="220"
	/>

	<script file="scripts/songticker.maki" param="-7"/>

	<!-- Bitrate -->
	<layer id="Bitrate.label" x="126" y="20" image="player.songinfo.bitrate" move="0" />
	<text
		id="Bitrate"
		display="SONGBITRATE" textrefreshrate="500"
		x="104" y="20" w="20" h="5" fontsize="5" font="player.bitmapfont.songinfo" align="right"
	/>

	<!-- Frequency -->
	<layer id="Frequency.label" x="159" y="20" image="player.songinfo.frequency"  move="0" />
	<text
		id="Frequency"
		display="SONGSAMPLERATE" textrefreshrate="500"
		x="142" y="20" w="15" h="5" fontsize="5" font="player.bitmapfont.songinfo" align="right"
	/>

	<layer id="monster" x="177" y="20" h="5" w="40" image="player.songinfo.na" move="0" />

	<script file="scripts/songinfo.maki"/>

	<vis
		id="main.vis"
		x="14" y="33"
		w="72" h="16"
		colorbandpeak="162,193,204"
		colorband1="82,97,102"
		colorband2="74,88,93"
		colorband3="78,92,97"
		colorband4="83,97,104"
		colorband5="88,102,107"
		colorband6="94,107,112"
		colorband7="100,113,118"
		colorband8="106,120,125"
		colorband9="112,121,131"
		colorband10="117,131,136"
		colorband11="122,137,142"
		colorband12="127,141,146"
		colorband13="131,145,150"
		colorband14="136,150,155"
		colorband15="140,154,159"
		colorband16="145,159,164"
		colorosc1="82,97,102"
		colorosc2="83,97,104"
		colorosc3="106,120,125"
		colorosc4="127,141,146"
		colorosc5="145,159,164"
		gammagroup="DisplayText"
	/>

	<vis
		id="main.vis.mirror"
		x="14" y="50"
		w="72" h="16"
		colorbandpeak="83,97,104"
		colorband1="82,97,102"
		colorband2="74,88,93"
		colorband3="78,92,97"
		colorband4="83,97,104"
		colorband5="88,102,107"
		colorband6="94,107,112"
		colorband7="100,113,118"
		colorband8="106,120,125"
		colorband9="112,121,131"
		colorband10="117,131,136"
		colorband11="122,137,142"
		colorband12="127,141,146"
		colorband13="131,145,150"
		colorband14="136,150,155"
		colorband15="140,154,159"
		colorband16="145,159,164"
		colorosc1="82,97,102"
		colorosc2="83,97,104"
		colorosc3="106,120,125"
		colorosc4="127,141,146"
		colorosc5="145,159,164"
		ghost="1"
		alpha="100"
		flipv="1"
		mode="1"
		gammagroup="DisplayText"
	/>

	<layer id="main.vis.trigger" x="14" y="33" h="16" w="72" rectrgn="1"/>

	<script file="scripts/visualizer.maki" />

</groupdef>

<groupdef id="player.cbuttons">

	<layer x="0" y="0" image="player.button.previous.placeholder"  move="0"/>
	<Button id="Prev"
		x="0" y="0" h="24" w="26"
		image="player.button.previous.normal"
		hoverImage="player.button.previous.hover"
		downImage="player.button.previous.down"
		action="PREV" tooltip="Previous Track"
	/>
	<layer id="Prev.glow" x="0" y="0" image="player.button.previous.glow" alpha="0" ghost="1"/>

	<layer x="25" y="0" image="player.button.play.placeholder"  move="0"/>
	<Button id="Play"
		x="25" y="0" h="24" w="22"
		image="player.button.play.normal"
		hoverImage="player.button.play.hover"
		downImage="player.button.play.down"
		action="PLAY" tooltip="Play"
	/>
	<layer id="Play.glow" x="25" y="0" image="player.button.pps.glow" alpha="0" ghost="1"/>

	<layer x="46" y="0" image="player.button.pause.placeholder"  move="0"/>
	<Button id="Pause"
		x="46" y="0" h="24" w="22"
		image="player.button.pause.normal"
		hoverImage="player.button.pause.hover"
		downImage="player.button.pause.down"
		action="PAUSE" tooltip="Pause Playback"
	/>
	<layer id="Pause.glow" x="46" y="0" image="player.button.pps.glow" alpha="0" ghost="1"/>

	<layer x="67" y="0" image="player.button.stop.placeholder"  move="0"/>
	<Button id="Stop"
		x="67" y="0" h="24" w="22"
		image="player.button.stop.normal"
		hoverImage="player.button.stop.hover"
		downImage="player.button.stop.down"
		action="STOP" tooltip="Stop Playback"
	/>
	<layer id="Stop.glow" x="67" y="0" image="player.button.pps.glow" alpha="0" ghost="1"/>

	<layer x="88" y="0" image="player.button.next.placeholder"  move="0"/>
	<Button id="Next"
		x="88" y="0" h="24" w="26"
		image="player.button.next.normal"
		hoverImage="player.button.next.hover"
		downImage="player.button.next.down"
		action="NEXT" tooltip="Next Track"
	/>
	<layer id="Next.glow" x="88" y="0" image="player.button.next.glow" alpha="0" ghost="1"/>

	<layer x="114" y="3" image="player.button.eject.placeholder"  move="0"/>
	<Button id="Eject"
		x="114" y="3" h="17" w="25"
		image="player.button.eject.normal"
		hoverImage="player.button.eject.hover"
		downImage="player.button.eject.down"
		action="EJECT" tooltip="Open File(s)"
	/>
	<layer id="Eject.glow" x="114" y="3" image="player.button.Eject.glow" alpha="0" ghost="1"/>

	<layer x="143" y="3" image="player.button.shuffle.placeholder"  move="0"/>
	<NStatesButton
		id="shuffle"
		x="143" y="3" w="32" h="17"
		image="player.button.shuffle.normal"
		hoverimage="player.button.shuffle.hover"
		downimage="player.button.shuffle.down"
		extendedSongtickerMessage="Shuffle: On; Shuffle: Off"
		rectrgn="1" nstates="2"
		tooltip="Toggle Playlist Shuffling"
		cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Shuffle"
	/>
	<layer id="shuffle.glow" x="143" y="3" image="player.button.shuffle.glow" alpha="0" ghost="1"/>

	<layer x="175" y="3" image="player.button.repeat.placeholder"  move="0"/>
	<NStatesButton
		id="repeat"
		x="172" y="3" w="27" h="17"
		image="player.button.repeat.normal"
		hoverimage="player.button.repeat.hover"
		downimage="player.button.repeat.down"
		extendedSongtickerMessage="Repeat: Playlist;Repeat: Track;Repeat: Off"
		rectrgn="1" nstates="3"
		tooltip="Toggle Playlist/Song Repeating"
		cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Repeat"
		cfgvals="0;1;-1"
	/>
	<layer id="repeat.glow" x="172" y="3" image="player.button.repeat.glow" alpha="0" ghost="1"/>

</groupdef>

<groupdef id="player.layout">

	<group id="player.display" x="3" w="222" h="54" y="0"/>

	<!-- Volume -->

	<layer id="player.placeholder.mute" x="114" y="40" image="player.button.mute.placeholder" move="0"/>

	<button id="mute" x="115" y="40" w="25" h="14" 
		image="player.button.mute.normal"
		hoverImage="player.button.mute.hover"
		downImage="player.button.mute.down"
		tooltip="Mute Volume"
	/>
	<button id="etum" x="115" y="40" w="25" h="14" 
		image="player.button.demute.normal"
		hoverImage="player.button.demute.hover"
		downImage="player.button.demute.down"
		tooltip="Turn Volume on"
		visible="0"
	/>
	<layer id="mute.glow" x="114" y="39" image="player.button.mute.glow" alpha="0" ghost="1"/>
	<layer id="mute.active" x="111" y="33" image="player.button.mute.active" visible="0" ghost="1"/>

	<layer id="player.volume.label" x="148" y="34" image="player.label.volume" move="0" />

	<grid id="player.volume.bg"
		x="146" y="44" h="5" w="78"
		left="player.slider.background.left"
		middle="player.slider.background.center"
		right="player.slider.background.right"
	/>
	
	<grid id="player.volume.fill"
		x="148" y="46" h="2" w="76"
		left="player.slider.light.left"
		middle="player.slider.light.center"
		right="player.slider.light.right"
	/>

	<Slider
		id="Volume"
		action="Volume"
		x="145" y="43" h="10" w="80"
		thumb="player.volume.thumb.normal"
		hoverThumb="player.volume.thumb.hover"
		downThumb="player.volume.thumb.down"
		tooltip="Volume"
	/>

	<script file="scripts/mute.maki" param="76"/>
	<!-- param = max_w for volume fillbar -->

	<!-- Seek -->

	<grid id="player.seek.bg"
		x="4" y="60" h="5" w="220"
		left="player.slider.background.left"
		middle="player.slider.background.center"
		right="player.slider.background.right"
	/>

	<ProgressGrid id="progressbar"
		x="6" y="62" h="2" w="218"
		orientation="right"
		left="player.slider.light.left"
		middle="player.slider.light.center"
		right="player.slider.light.right"
	/>

	<Slider
		id="seeker"
		action="SEEK"
		x="3" y="59" h="10" w="222"
		thumb="player.posbar.thumb.normal"
		hoverThumb="player.posbar.thumb.hover"
		downThumb="player.posbar.thumb.down"
		ghost="1"
		tooltip="Seeker"
	/>

	<Slider
		id="seeker.ghost"
		action="SEEK"
		x="3" y="59" h="10" w="222"
		thumb="player.posbar.thumb.normal"
		hoverThumb="player.posbar.thumb.hover"
		downThumb="player.posbar.thumb.down"
		tooltip="Seeker"
	/>

	<script file="scripts/seek.maki"/>
	
	<group id="player.cbuttons" x="0" y="70" h="32" w="226"/>
	<NStatesButton id="shuffle.active" x="142" y="66" image="player.button.shuffle.active" ghost="1" cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Shuffle"  nstates="2"/>
	<NStatesButton id="repeat.active" x="170" y="66" image="player.button.repeat.active" ghost="1" cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Repeat" cfgvals="0;1;-1"  nstates="3"/>
	<script file="scripts/cbuttons.maki" />

</groupdef>

<!-- Player:Titlebar -->

<groupdef id="player.mainmenu" rectregn="1" >

	<layer x="0" y="0" image="window.titlebar.menu.text" />

	<layer id="menu.layer.file.normal" x="0" y="0" h="16" w="26" image="window.titlebar.menu.file.normal" visible="1" />
	<layer id="menu.layer.file.hover" x="0" y="0" h="16" w="26" image="window.titlebar.menu.file.hover" visible="0" />
	<layer id="menu.layer.file.down" x="0" y="0" h="16" w="26" image="window.titlebar.menu.file.down" visible="0" />


	<layer id="menu.layer.play.normal" x="26" y="0" h="16" w="28" image="window.titlebar.menu.play.normal" visible="1" />
	<layer id="menu.layer.play.hover" x="26" y="0" h="16" w="28" image="window.titlebar.menu.play.hover" visible="0" />
	<layer id="menu.layer.play.down" x="26" y="0" h="16" w="28" image="window.titlebar.menu.play.down" visible="0" />


	<layer id="menu.layer.options.normal" x="54" y="0" h="16" w="40" image="window.titlebar.menu.options.normal" visible="1" />
	<layer id="menu.layer.options.hover" x="54" y="0" h="16" w="40" image="window.titlebar.menu.options.hover" visible="0" />
	<layer id="menu.layer.options.down" x="54" y="0" h="16" w="40" image="window.titlebar.menu.options.down" visible="0" />


	<layer id="menu.layer.view.normal" x="94" y="0" h="16" w="32" image="window.titlebar.menu.view.normal" visible="1" />
	<layer id="menu.layer.view.hover" x="94" y="0" h="16" w="32" image="window.titlebar.menu.view.hover" visible="0" />
	<layer id="menu.layer.view.down" x="94" y="0" h="16" w="32" image="window.titlebar.menu.view.down" visible="0" />


	<layer id="menu.layer.help.normal" x="126" y="0" h="16" w="30" image="window.titlebar.menu.help.normal" visible="1" />
	<layer id="menu.layer.help.hover" x="126" y="0" h="16" w="30" image="window.titlebar.menu.help.hover" visible="0" />
	<layer id="menu.layer.help.down" x="126" y="0" h="16" w="30" image="window.titlebar.menu.help.down" visible="0" />


	<Menu id="File.menu" menugroup="main" next="Play.menu" prev="Help.menu" x="0" y="0" h="16" w="26" menu="WA5:File" normal="menu.layer.file.normal" hover="menu.layer.file.hover" down="menu.layer.file.down" />
	<Menu id="Play.menu" menugroup="main" next="Options.menu" prev="File.menu" x="28" y="0" h="16" w="28" menu="WA5:Play" normal="menu.layer.play.normal" hover="menu.layer.play.hover" down="menu.layer.play.down" />
	<Menu id="Options.menu" menugroup="main" next="View.menu" prev="Play.menu" x="54" y="0" h="16" w="40" menu="WA5:Options" normal="menu.layer.options.normal" hover="menu.layer.options.hover" down="menu.layer.options.down" />
	<Menu id="View.menu" menugroup="main" next="Help.menu" prev="Options.menu" x="94" y="0" h="16" w="32" menu="WA5:Windows" normal="menu.layer.view.normal" hover="menu.layer.view.hover" down="menu.layer.view.down" />
	<Menu id="Help.menu" menugroup="main" next="File.menu" prev="View.menu" x="126" y="0" h="16" w="30" menu="WA5:Help" normal="menu.layer.help.normal" hover="menu.layer.help.hover" down="menu.layer.help.down" />

</groupdef> 

<groupdef id="player.titlebar">

	<grid 
		x="0" y="0" h="18" w="0" relatw="1" regionop="1"
		left="window.titlebar.grid.left"
		middle="window.titlebar.grid.middle"
		right="window.titlebar.grid.right"
	/>

	<layer x="27" y="6" image="window.titlebar.text.winamp" ghost="1" />

	<guiobject fitparent="1" rectrgn="1" move="1" id="player.mousetrap.maximize"/>

	<layer id="titlebar.resizer.topleft" x="0" y="0" h="3" w="5" rectrgn="1" resize="topleft" />
	<layer id="titlebar.resizer.top" x="5" y="0" h="3" w="-10" relatw="1" rectrgn="1" resize="top" />
	<layer id="titlebar.resizer.topright" x="-5" y="0" h="3" w="5" relatx="1" rectrgn="1" resize="topright" />
	<layer x="0" y="3" h="15" w="5" rectrgn="1" resize="left" />
	<layer x="-5" y="3" h="15" w="5" relatx="1" rectrgn="1" resize="right" />
	<layer id="titlebar.resizer.disable" x="0" y="0" h="18" w="0" relatw="1" rectrgn="1" ghost="1" move="0"/>

	<group id="player.mainmenu" x="75" y="1" w="165" h="16"/>

	<script file="scripts/mainmenu.maki" />

	<button 
		x="5" y="2" h="13" w="15"
		action="SYSMENU" 
		image="window.titlebar.button.sysmenu.normal"
		hoverImage="window.titlebar.button.sysmenu.hover"
		downImage="window.titlebar.button.sysmenu.down"
		tooltip="Main Menu"
	/>

	<button 
		x="-79" relatx="1" y="2" h="13" w="17"
		id="player.button.minimize"
		action="MINIMIZE"
		image="window.titlebar.button.minimize.normal"
		hoverImage="window.titlebar.button.minimize.hover"
		downImage="window.titlebar.button.minimize.down"
		tooltip="Minimize Winamp"
	/>

	<button 
		x="-60" relatx="1" y="2" h="13" w="17"
		id="player.titlebar.button.restore"
		image="window.titlebar.button.restore.normal"
		hoverImage="window.titlebar.button.restore.hover"
		downImage="window.titlebar.button.restore.down"
		tooltip="Restore Winamp"
	/>

	<button 
		x="-60" relatx="1" y="2" h="13" w="17"
		id="player.titlebar.button.maximize"
		image="window.titlebar.button.maximize.normal"
		hoverImage="window.titlebar.button.maximize.hover"
		downImage="window.titlebar.button.maximize.down"
		tooltip="Maximize Winamp"
	/>

	<button 
		x="-41" relatx="1" y="2" h="13" w="17"
		action="SWITCH" param="shade" 
		image="window.titlebar.button.shade.normal"
		hoverImage="window.titlebar.button.shade.hover"
		downImage="window.titlebar.button.shade.down"
		tooltip="Windowshade Mode"
	/>

	<button 
		x="-22" relatx="1" y="2" h="13" w="17"
		action="CLOSE"
		image="window.titlebar.button.close.normal"
		hoverImage="window.titlebar.button.close.hover"
		downImage="window.titlebar.button.close.down"
		tooltip="Exit Winamp"
	/>

	<text id="gen.infotxt" relatx="1" size="10" bold="0" align="right" x="-258" y="1" w="173" text="Winamp Bento v0.7 #081" color="color.window.txt" ghost="1" font="Tahoma" />

</groupdef>